﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example06_Sharp
{
    class Rectangle:Polygon
    {
        public Rectangle(int w, int h)
            : base(w)
        {
            height = h;
        }
        public int area()
        {
            return (width * height);
        }
    }
}
